how to check constraints on a table in sql